#ifndef QSETTINGDIALOG_H
#define QSETTINGDIALOG_H

#include "../../libs/core/qbasedialog.h"

namespace Ui {
class QSettingDialog;
}

struct tagResult
{
    bool enabled_save;
    int  save;
    int  read;
    bool ok;
};

class QSettingDialog : public QBaseDialog
{
    Q_OBJECT
    
public:
    explicit QSettingDialog(QWidget *parent = 0);
    ~QSettingDialog();
    tagResult   get_result();
    void        set_result(const tagResult& result);
private slots:
    void on_ok_clicked();

    void on_cancel_clicked();

    void on_checkBox_clicked();

private:
    Ui::QSettingDialog *ui;
    tagResult   m_result;
};

#endif // QSETTINGDIALOG_H
